function[Data_FC] = func_connect(hemiData, seedIndex)

seedROI = hemiData(seedIndex, :);
Data_FC = [];
for s = 1:length(hemiData)
    tarROI = hemiData(s, :);
    [r, p] = corr(seedROI', tarROI');
    Data_FC = [Data_FC r];
end

Data_FC(isnan(Data_FC))=0